package org.nashua.tt151;

/**
 * The RobotMap class holds all the constants while includes the wiring on the
 * robot
 */
public class RobotMap {
    /**
     * The RobotMap.DualAction class holds the button and axis mappings for a
     * Logitech DualAction F310 controller (when the switch is set to D)
     */
    public static class DualAction {
        public static class Axis {
            public static final int DPAD_X = 5;
            public static final int DPAD_Y = 6;
            public static final int LEFT_X = 1;
            public static final int LEFT_Y = 2;
            public static final int RIGHT_X = 3;
            public static final int RIGHT_Y = 4;
        }
        public static class Button {
            public static final int A = 2;
            public static final int B = 3;
            public static final int BACK = 9;
            public static final int LEFT_BUMPER = 5;
            public static final int LEFT_JOY_DOWN = 11;
            public static final int LEFT_TRIGGER = 7;
            public static final int RIGHT_BUMPER = 6;
            public static final int RIGHT_JOY_DOWN = 12;
            public static final int RIGHT_TRIGGER = 8;
            public static final int SELECT = 10;
            public static final int X = 1;
            public static final int Y = 4;
        }
    }
    /**
     * The RobotMap.Jaguar class holds the PWM slots that each Jaguar is
     * plugged into.
     */
    public static class Jaguar {
        public static final int BACK_LEFT = 3;
        public static final int BACK_RIGHT = 2;
        public static final int FRONT_LEFT = 4;
        public static final int FRONT_RIGHT = 1;
        public static final int SIDEWAYS = 10;
    }
    
    public static class Relay {
        public static final int LED = 1;
    }
    
    public static class Analog {
        public static class Gyro {
            public static final int SLOT = 1;
            public static final double SENSITIVITY = 0.007;
            public static final int THRESHOLD = 1;
        }
    }
}
